/**
 * Baidu.com Inc.
 * Copyright (c) 2022 All Rights Reserved.
 */
package guaduation.dataEncapusulation;

import guaduation.utils.HexUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author wangjiajun06
 * @version 1.0
 * @description
 * @date 2022/1/17 3:39 下午
 */
public abstract class AbstractEncapusulation<T> {

     final Logger logger = LoggerFactory.getLogger(AbstractEncapusulation.class);

     byte[] data;
     String dataStr;

     void convertBytesToString() {
         this.dataStr  = HexUtil.bytesToHexString(this.data);
     }
     public abstract T encapusulation();
     public abstract Boolean isSeccess();
}
